package com.order.service.impl;

import com.order.dao.FoodDao;
import com.order.pojo.Food;
import com.order.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class FoodServiceImpl implements FoodService {
    @Autowired
    private FoodDao foodDao;
    @Override
    public Integer insert(Food food) {
        return foodDao.insert(food);
    }

    @Override
    public List<Food> findAll() {
        return foodDao.findAll();
    }
}
